/* nav bar */

.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.488), rgba(14, 14, 16, 0.023));
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    z-index: 1000;
    border: 1px solid rgba(60, 60, 60, 0.8);
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
    max-width: fit-content;
}
.navbar-profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(80, 80, 80, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    display: block;
    vertical-align: middle;
}
.navbar a {
    color: var(--main-color);
    text-decoration: none;
    font-family: var(--secondary-font);
    font-size: 20px;
    font-weight: 400;
    transition: color 0.2s ease;
}
.navbar a:hover {
    color: var(--link-hover-color);
    text-decoration: none;
}


/* Media query for small screens */
@media screen and (max-width: 768px) {
    .navbar {
        width: 100%;
        max-width: 100%;
        left: 0;
        right: 0;
        transform: none;
        border-radius: 0;
        top: 0;
        padding: 12px 0;
        margin: 0;
        gap: 0;
        border: none;
        box-shadow: none;
        background: var(--background-color);
    }

    .navbar a {
        font-size: 18px;
        flex: 1 1 0;
        text-align: center;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .navbar a:has(.navbar-profile-pic) {
        display: none;
    }

    .navbar-profile-pic {
        display: none;
    }
}